package cn.lutu.protocol.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotBlank;

import java.time.LocalDateTime;

@Data
public class ArticlePostDTO {
    private Long id;
    @NotBlank(message = "不允许为空,请提交标题")
    private String title;
    private String brief;
    @NotBlank(message = "不允许为空,请提交文章类型")
    private Long categoryId;
    @NotBlank(message = "不允许为空,请提交封面")
    private String imgUrl;
    @NotBlank(message = "不允许为空,请提交文章内容")
    private String content;
}
